package routers

import (
	"mpps/web/controller"

	"github.com/gin-gonic/gin"
)

func ProgramRoutersInit(g *gin.Engine) {
	v1 := g.Group("v1")
	{
		v1.POST("/program/upload", controller.NewProgramController().ProgramUpload)
		v1.GET("/program/download", controller.NewProgramController().ProgramDownload)
		v1.GET("/program/list", controller.NewProgramController().ProgramList)
		v1.POST("/program/rollback", controller.NewProgramController().ProgramRollback)
		v1.GET("/program/latest", controller.NewProgramController().ProgramLatest)
	}
}
